home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_fxforge2.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
63 lines
/* Execution Arexx program for AutoFX and FXForge
EOT_FXForge1.ifx
Programmed by K. Barkley Dec 1997
These scripts are set up so that the script can be called multiple times in the
same AutoFX session without colliding. I have provided 2, but the scheme can be
easily extended to any number, by changing the value of the INSTANCE variable and
renaming the script accordingly.
Remember to change both the .pre and the .ifx script!
*/
OPTIONS RESULTS
instance = 2
rc = 0
base = 'AutoFx_FXFld' || instance || '_'
/* set up the path and initial file */
lpath = GETCLIP(base || 'Path')
lfile = GETCLIP(base || 'File')
/* get the variables */
DO i = 0 TO 7
ctemp = GETCLIP(base||'Ctl'||i)
IF ctemp = "" THEN control.i = 0
ELSE control.i = ctemp
ctemp = GETCLIP(base|| 'Stp' || i)
IF ctemp = "" THEN step.i = 0
ELSE step.i = ctemp
END i
/* build the command string */
cmd = ' LOAD '|| lpath || '/' || lfile
do i = 0 to 7
cmd = cmd || ' c ' || i || ' ' || control.i
end i
hook FXForge cmd
/* bump the current controls and save them */
DO i = 0 TO 7
control.i = control.i + step.i
IF control.i > 255 THEN control.i = 255
IF control.i < 0 THEN control.i = 0
CALL SETCLIP(base||'Ctl'||i, control.i )
END i
rc = 0
EXIT rc